extends Node


# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
	pass
func 手动发射子弹(鬼人正邪:CharacterBody2D):
	for i in range(1,5):
		var 普通子弹 = preload("res://Code/effects/鬼人正邪普通弹.tscn").instantiate()
		鬼人正邪.get_parent().add_child(普通子弹)
		普通子弹.position = 鬼人正邪.get_node("子弹发射口"+str(i)).global_position
		普通子弹.scale = 鬼人正邪.scale
		if i ==1:
			普通子弹.x = 5
		if i == 2:
			普通子弹.x = -5
		普通子弹.player =鬼人正邪
		pass
